const accountLogin = r => require.ensure([], () => r(require('@/views/account/login')))
const accountModifyPassword = r => require.ensure([], () => r(require('@/views/account/modifyPassword')))
const accountLawClause = r => require.ensure([], () => r(require('@/views/account/lawClause')))
const accountCollect = r => require.ensure([], () => r(require('@/views/account/collect')))
const accountMessageList = r => require.ensure([], () => r(require('@/views/account/messageList')))
const accountMessageDetail = r => require.ensure([], () => r(require('@/views/account/messageDetail')))
const accountAdvice = r => require.ensure([], () => r(require('@/views/account/advice')))
const accountEmpty = r => require.ensure([], () => r(require('@/views/account/empty')))
const accountDownload = r => require.ensure([], () => r(require('@/views/account/download')))
export default [
    //登录
    {
        path: '/login',
        name: 'accountLogin',
        component: accountLogin,
        // props: true,
        meta: {
            title: '登录'
        }
    },
      //忘记密码
    {
        path: '/modifyPassword',
        name: 'accountModifyPassword',
        component: accountModifyPassword,
        // props: true,
        meta: {
          title: '忘记密码',
          requireAuth: true
        }
    },
    //法律条款
    {
        path: '/lawClause',
        name: 'accountLawClause',
        component: accountLawClause,
        // props: true,
        meta: {
            title: '法律条款',
            requireAuth: true
        }
    },
    //收藏夹
    {
        path: '/collect',
        name: 'accountCollect',
        component: accountCollect,
        // props: true,
        meta: {
            title: '收藏夹',
            requireAuth: true
        }
    },
    //私信通知
    {
        path: '/messageList',
        name: 'accountMessageList',
        component: accountMessageList,
        // props: true,
        meta: {
            title: '私信通知',
            requireAuth: false
        }
    },
     //私信通知详情
     {
        path: '/messageDetail',
        name: 'accountMessageDetail',
        component: accountMessageDetail,
        // props: true,
        meta: {
            title: '私信通知',
            requireAuth: false
        }
    },
     //投诉建议
     {
        path: '/advice',
        name: 'accountAdvice',
        component: accountAdvice,
        // props: true,
        meta: {
            title: '投诉建议',
            requireAuth: true
        }
    },
    //暂无信息---无页面展示
    {
        path: '/empty',
        name: 'accountEmpty',
        component: accountEmpty,
        // props: true,
        meta: {
            title: ''
        }
    },
    //下载
    {
        path: '/download',
        name: 'accountDownload',
        component: accountDownload,
        // props: true,
        meta: {
            title: '下载',
            requireAuth: true
        }
    },
]